#ifndef __DS_GLOBAL_INCLUDE__
#define __DS_GLOBAL_INCLUDE__

#include "singleton.h"

#define g_conf Singleton<DSConfig>::me()
#define g_server Singleton<DataServer>::me()
#define g_logger Singleton<Logger>::me()
#define g_storage Singleton<Storage>::me()
#define g_work_thread_pool Singleton<DKThreadPool>::me()

#define OS_BITS 64

#ifdef OS_BITS
  #if OS_BITS == 64
    #define INT64_PRINTF_FORMAT   "%ld"
  #else
    #define INT64_PRINTF_FORMAT   "%lld"
  #endif
#else
  #define INT64_PRINTF_FORMAT   "%lld"
#endif

#endif
